package org.itboys.shop.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Index;
import org.mongodb.morphia.annotations.Indexed;
import org.mongodb.morphia.annotations.Indexes;

/**
 * 财务，交易流水号
 */
@Entity(value = "OrderSellRecord", noClassnameStored = true)
@Indexes({@Index(value = "centerId, -ct")})
public class OrderSellRecord extends BaseLongIdEntity {

    @Indexed
    private long centerId;  //运营中心id

    @Indexed
    private Long sellerId; //商家id

    @Indexed
    private String orderNo;//订单编号

    private String payNo; //支付流水号

    private String sellerName; //商户名称

    private String phoneNo; //联系方式

    private int tradMoney; //交易额，单位 分

    private int actualMoney; //实付额

    private int payType; //支付方式，定义见 PayConstant

    private String payName; //付款人

    private int isDeleted;

    private int status; //订单状态

    public Long getSellerId() {
        return sellerId;
    }

    public void setSellerId(Long sellerId) {
        this.sellerId = sellerId;
    }

    public long getCenterId() {
        return centerId;
    }

    public void setCenterId(long centerId) {
        this.centerId = centerId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getPayNo() {
        return payNo;
    }

    public void setPayNo(String payNo) {
        this.payNo = payNo;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public int getTradMoney() {
        return tradMoney;
    }

    public void setTradMoney(int tradMoney) {
        this.tradMoney = tradMoney;
    }

    public int getActualMoney() {
        return actualMoney;
    }

    public void setActualMoney(int actualMoney) {
        this.actualMoney = actualMoney;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
